﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {

            RefClass refClass = new RefClass();

            int a = 20;
            bool result = refClass.Judge(ref a);//实参
            Console.WriteLine("验证结果是：" + result);
            Console.WriteLine("再次输出a的结果为：{0}",a);

            OutClass outClass = new OutClass();
            int num = 20;
            bool rs;//不需要赋值
            outClass.Judge(num, out rs);//实参
            Console.WriteLine(rs);
            Console.WriteLine("输出num的值；{0}",num);
        }
    }
}
